<template>
  <div>
    <van-popup :value="show" position="left" class="one">
      <van-nav-bar
        left-arrow
        title="问答"
        @click-left="leftClick"
      ></van-nav-bar>
      <div>gag</div>
    </van-popup>
  </div>
</template>

<script>
export default {
  name: 'IndexSon',
  props: {
    show: {
      type: Boolean,
      default: false
    }
  },
  model: {
    prop: 'show',
    event: 'input'
  },
  data () {
    return {
      isShow: false
    }
  },
  methods: {
    leftClick () {
      this.$emit('input', false)
    }
  }
}
</script>

<style lang="less" scoped>
.one {
  width: 100%;
  height: 100%;
}
</style>
